package sharding.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import sharding.handler.DateLongTypeHandler;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

@Data
@TableName("hss_history")
public class HssHistoryEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //@TableId(type = IdType.ASSIGN_ID)
    @TableId
    private Long id;
    private Long typeId;
    private Long equipmentId;

    @TableField(exist = false)
    private String equipmentSn;
    @TableField(exist = false)
    private String equipmentBatchNo;
    @TableField(exist = false)
    private BigDecimal equipmentCapacity;
    @TableField(exist = false)
    private BigDecimal equipmentPowerStorage;
    @TableField(exist = false)
    private String equipmentUseTime;

    private String data;
    private String parseData;
    private Long parseTime;
    @TableField(exist = false)
    private Map<String, Object> propertyData;
    @TableField(typeHandler = DateLongTypeHandler.class)
    private Date createTime;
}
